docker build -t mysql-alpine .
docker save mysql-alpine | xz > docker.mysql-alpine.tar.xz
mkdir -p /data
rm -rf /data/mysql
docker run --rm -it -v/data/mysql:/var/lib/mysql mysql-alpine sh -c " \
apk add --no-cache mysql-client \
&& rc default \
&& /etc/init.d/mariadb setup \
&& rc-service mariadb start \
&& mysql -e \"CREATE USER 'root'@'%' IDENTIFIED BY '123456';GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';FLUSH PRIVILEGES;\" "
tar cfJ mysql.data.tar.xz /data/mysql
